package com.dubbo.provider.service.impl;

import com.dubbo.api.TestService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Value;

@Service
public class TestServiceImpl implements TestService {

    // 获取实例端口
    @Value("${server.port}")
    private String port;

    @Override
    public String test(String name) {
        return "test dubbo "+ name + ", port " + port;
    }
}
